﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<TanHungViet.Web.Models.Content>>" %>
<%@ Import Namespace="System.Globalization" %>

<div class="ct_right">
    <div class="bg_Center">
        Tin tức
    </div>
    <div class="clear">
    </div>
    
    <%foreach (var item in Model)
      {%>
        <div class="ct_bdright">
            <img src='<%=Url.Content("~/Content/images/tintuc.png")%>' alt=""/>
            <span class="date">
                <%= item.PublishDate == null ? DateTime.Now.ToString("dd/MM/yyyy", new CultureInfo("vi-Vn"))
			                    : item.PublishDate.Value.ToString("dd/MM/yyyy", new CultureInfo("vi-Vn"))%>
            </span>
            <a href="<%=Url.Action("ChiTietTinTuc", new { code = item.ContentCode })%>">
                <%=item.ContentTitle %>
            </a>
        </div>
      <%} %>
    
    <div style="margin-left: 5px; margin-right: 5px; text-indent: 20px;"></div>
                
</div>
